import { getInfo } from '@renderer/api/login'

import { defineStore } from 'pinia'

export const useUserStore = defineStore('userId', {
  state: () => {
    return {
      rolePerm: {}
    }
  },
  getters: {},
  actions: {
    async getUserInfo() {
      const res = await getInfo()
      console.log(res)
      this.rolePerm = res.data.role[0].rolePerm
    }
  }
})
